package com.craterhill.java.ccp.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ccp.common.beans.Role;
import com.craterhill.java.ccp.dao.RolesDao;

@Repository
public class RolesDaoImpl extends AbstractDao<Role> implements RolesDao {

	
	@Autowired
	public RolesDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public Role find(int recordId) {
		return null;
	}

	@Override
	public List<Role> findAll() {
		
		return super.findMultipleObject(FIND_ALL_ROLES,new RolesExtractor());
	}

	
}
